<div align="center" class="pagination">
<?php if ($total > 0) { ?>
    <?php echo $first.' - '. $last.' of '. $total; ?>
    <?php if ($pages != "1") echo "<br>[ $pages ]"; ?>
<?php } ?>
</div>
